import request from '@/utils/request'


// 产品购买 首页账户信息
export function getProductIndex() {
  return request({
    url: '/person/product/index',
    method: 'get'
  })
}

// 产品购买 首页账户信息
export function getSignFlowFeeList() {
  return request({
    url: '/person/product/signFlowFeeList',
    method: 'get'
  })
}

// 碳能量兑换
export function integralExchange(id, payPwd) {
  const param = {id, payPwd}
  return request({
    url: '/person/product/integralExchange',
    method: 'post',
    params: param
  })
}

// 账户余额支付
export function accountBuy(id, payPwd) {
  const param = {id, payPwd}
  return request({
    url: '/person/product/accountBuy',
    method: 'post',
    params: param
  })
}

// 查询签署流量包详细
export function getSignFlowFee(id) {
  return request({
    url: '/person/product/signFlowFee/' + id,
    method: 'get'
  })
}
